package com.hejia.alauda.entity;

import java.util.Date;

import javax.persistence.Column;

/**
 * 推送消息
 *
 *
 * Created by chenliting on 14-10-22.
 *
 */
public class PushMessage extends BaseEntity{

	private static final long serialVersionUID = 1L;
	
	/**
	 * 推送消息平台：Android
	 */
	public static final String PUSH_MESSAGE_MODEL_ANDROID = "android";
	
	/**
	 * 推送消息平台：iOS
	 */
	public static final String PUSH_MESSAGE_MODEL_IOS = "ios";

	/**
	 * 打开App页面：我的红包
	 */
	public static final String OPEN_APP_PAGE_MY_BONUS = "MyBonus";

	/**
	 * 正式模式
	 */
	public static final String PRODUCTION_MODE_TRUE = "true";
	
	/**
	 * 测试模式
	 */
	public static final String PRODUCTION_MODE_FALSE = "false";

    @Column
    private String title; // 通知栏标题

    @Column
    private String alert;  // 通知内容

    @Column
    private String productionMode; // 测试模式和正式模式

    @Column
    private String models; // 机型
    
    @Column
    private User user; // 推送用户，空则推送给所有用户
    
    @Column
    private String openUrl; // 打开网页地址
    
    @Column
    private String openAppPage; // 打开App页面
    
    @Column
    private Date pushTime; // 推送时间
    
    @Column
    private Date submitTime; // 提交推送时间
    
    @Column
    private String operator; // 操作人

    public String getModels() {
        return models;
    }

    public void setModels(String models) {
        this.models = models;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAlert() {
        return alert;
    }

    public void setAlert(String alert) {
        this.alert = alert;
    }

    public String getProductionMode() {
        return productionMode;
    }

    public void setProductionMode(String productionMode) {
        this.productionMode = productionMode;
    }

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getOpenUrl() {
		return openUrl;
	}

	public void setOpenUrl(String openUrl) {
		this.openUrl = openUrl;
	}

	public String getOpenAppPage() {
		return openAppPage;
	}

	public void setOpenAppPage(String openAppPage) {
		this.openAppPage = openAppPage;
	}

	public Date getPushTime() {
		return pushTime;
	}

	public void setPushTime(Date pushTime) {
		this.pushTime = pushTime;
	}

	public Date getSubmitTime() {
		return submitTime;
	}

	public void setSubmitTime(Date submitTime) {
		this.submitTime = submitTime;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}
}
